<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Assign Horse</title>
</head>
<body>
<form action="@{Horses.Assign()}" method="get">
<b>Please Select a User : </b>

<select size="1" name="userid">
#{list items:models.User.findAll(), as:'user'}
<option value="${user.id}">${user.UserName}</option>
#{/list}
</select>
<br> <br>
<b>Please Select a Horse : </b>
<select size="1" name="horseid">
#{list items:models.Horse.fidnAll(), as:'horse'}
<option value="${horse.id}">${horse.HorseName}</option>
</select>
</form>
</body>
</html>